﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BootstrapAdmin.DataAccess.Models;

/// <summary>
/// 能耗信息
/// </summary>
[Table("ops_energy_consumption")]
public class EnergyConsumption
{
    public int Id { get; set; }

    /// <summary>
    /// 工站
    /// </summary>
    [NotNull]
    [Required]
    [Display(Name = "工站")]
    public string? Station { get; set; }

    /// <summary>
    /// 能耗
    /// </summary>
    [Display(Name = "能耗")]
    public decimal Energy { get; set; }

    /// <summary>
    /// 记录时间
    /// </summary>
    [Display(Name = "记录时间")]
    public DateTime CreatedAt { get; set; }
}
